import { IsString, IsEnum, IsInt, IsEmail, IsOptional, Length, Min, Max } from 'class-validator';

export class CreateUserDto {
    // 用户名
    @IsString()
    @Length(4, 50)
    username: string;

    @IsString()
    @Length(6, 255)
    password: string;


    // 电子邮箱
    @IsEmail()
    @Length(1, 100)
    email: string;
}
